﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebPages.AdminPages
{
    public partial class Main : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if(Session["User"] != null)
            {
                if (Session["User"].ToString() == "admin")
                {

                }
            }
            else
            {
                Response.Write("<script>alert('请登录')</script>");
                Response.Redirect("Login.aspx");
            }
           
        }
    }
}